package oop5;

/**
 * @author oldliu
 * @since 1.0
 */
public class Car {
    private String brand="VolkSwogen";
    private int money=12;//万

    public Car(){

    }
    public Car(String brand, int money) {
        this(money);
        this.brand = brand;
        //this.money = money;

    }
    private Car(int money) {
        this.money = money;
    }
    public void start(){
        System.out.println("这辆"+brand+",价格是"+money+"万元");
        pumpOil();
        wuhua();
        pressAir();
        paiyan();
    }
    private  void pumpOil(){
        System.out.println("把汽油从油箱抽到燃烧室中");
    }
    private void wuhua(){
        System.out.println("把汽油雾化");
    }
    private void pressAir(){
        System.out.println("压缩空气，点火");
    }
    private void doWork(){
        System.out.println("气体膨胀，产生动能，推动活塞移动，产生能量");
    }
    private void paiyan(){
        System.out.println("排出尾气");
    }
}
